#!/bin/bash

for i in `kubectl get pod -n $1 -owide|awk '{print $(NF-3)}'`
do
   kubectl get pod -n $1 -owide|grep -w $i|awk '{print $1}'
   echo "redis客户端连接数量=`cat /tmp/a|grep -w $i|wc -l`"
   echo -e
done
